package com.shidaimanong.controller;

import com.shidaimanong.entity.Result;
import com.shidaimanong.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/user")
public class UserRestController {

    @Autowired
    private UserService userService;

    @GetMapping(value = "delUser/{id}")
    public String delUser(@PathVariable int id) {
        userService.delUser(id);
        return new Result().toString();
    }
}